var express = require('express');
var router = express.Router();
var cate=require("../controll/cate");

router.post('/list', function(req, res, next) {
    cate.list(req,res,next);
});
router.post('/data', function(req, res, next) {
    cate.post(req,res,next);
});
router.put('/data/:id', function(req, res, next) {
    cate.put(req,res,next);
});
router.delete('/data/:id', function(req, res, next) {
    cate.delete(req,res,next);
});
module.exports = router;